package com.topnav.mc.config;

import org.apache.ibatis.logging.Log;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: kenny
 * @Date: 2023/12/7 16:55
 */
//@Component("MybitsLog")
public class MybitsLog implements Log {
    @Value("${mybatis-plus.configuration.log-out:true}")
    private boolean logOut=false;

    public MybitsLog(String clazz) {
    }

    @Override
    public boolean isDebugEnabled() {
        return logOut;
    }

    @Override
    public boolean isTraceEnabled() {
        return logOut;
    }

    @Override
    public void error(String s, Throwable throwable) {

    }

    @Override
    public void error(String s) {

    }

    @Override
    public void debug(String s) {

    }

    @Override
    public void trace(String s) {

    }

    @Override
    public void warn(String s) {

    }
}
